<?php
/**

 * @version $Id: default.php,v 1.4 2009/06/04 20:13:37 dgravato Exp $

 * @package    sketchup

 * @subpackage 

 * @author     Chris Borkowski {@link http://www.guggenheim.org}

 * @author     Created on 05-May-2009

 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<?php if ($this->search != ''): ?>
<div id="sketchup_message_recent"><h3>Search by keyword > <?php echo htmlentities($this->search);?> </h3> </div>	
<?php elseif ($this->filter_country != ''): ?>
<div id="sketchup_message_recent"><h3>Search by country > <?php echo htmlentities($this->filter_country);?> </h3> </div>	
<?php endif; ?>

<?php foreach($this->list as $l): ?> 
<div id="sketchup_search_list">
<table> 
<tr>
  <td width="180" valign="top">
  <div id="list_picture"><a href="<?php echo $l->link; ?>">
  <img src="<?php echo $l->image1 = str_replace('/images/content/sketchup/uploads/', '/images/content/sketchup/site/', $l->image1); ?>" width="160" height="112"/></a></div>
  </td>
  <td width="500" valign="top"><span id="sketchup_title"><a href="<?php echo $l->link; ?>"><?php echo $l->p_title; ?></a></span><br/>
  	<span id="sketchup_designer">By <?php echo $l->f_name; ?>&nbsp;<?php echo $l->l_name; ?></span><br/>
 	<span id="sketchup_designer_details">From: <?php echo $l->country; ?>,&nbsp;<?php echo $l->city; ?><br/>
	Shelter Location: <?php echo $l->location; ?><br/>
 	</span>
 	<span id="finalist_all">
       		<?php if ($l->finalist == 1): ?>
        	 <a href="<?php echo $this->vote_link; ?>"> <img src="<?php echo JURI::base(); ?>/components/com_sketchup/assets/images/finalist_dot.jpg"/> FINALIST </a>
        	<?php endif ?>
		</span>
 	</td>
</tr>  

</table>
</div>
<?php endforeach; ?> 


 <div id ="bottom_links">
 <table width="100%">
    <tr>
      <td><?php echo $this->pagination->getResultsCounter(); ?></td>
     	<td><form name="adminForm"><?php echo $this->pagination->getListFooter(); ?></form></td>
      <td>
		<?php if ($this->show_share)
    	        {
		echo $this->loadTemplate('share');
		};?>     
     
     </td> 
    </tr>  
 </table>
 </div>




